.class Lcom/baidu/android/pushservice/PushLightapp$2;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/ServiceConnection;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/baidu/android/pushservice/PushLightapp;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/baidu/android/pushservice/PushLightapp;


# direct methods
.method constructor <init>(Lcom/baidu/android/pushservice/PushLightapp;)V
    .registers 2

    iput-object p1, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .registers 5

    invoke-static {}, Lcom/baidu/android/pushservice/PushLightapp;->b()Z

    move-result v0

    if-eqz v0, :cond_3a

    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/baidu/android/pushservice/PushLightapp;->a(Lcom/baidu/android/pushservice/PushLightapp;Z)Z

    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {p2}, Lcom/baidu/android/pushservice/aidl/IPushService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/baidu/android/pushservice/aidl/IPushService;

    move-result-object v1

    iput-object v1, v0, Lcom/baidu/android/pushservice/PushLightapp;->a:Lcom/baidu/android/pushservice/aidl/IPushService;

    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->c(Lcom/baidu/android/pushservice/PushLightapp;)I

    move-result v0

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->a(I)I

    invoke-static {}, Lcom/baidu/android/pushservice/PushLightapp;->c()Lcom/baidu/android/pushservice/IPushLightappListener;

    move-result-object v0

    if-eqz v0, :cond_34

    invoke-static {}, Lcom/baidu/android/pushservice/PushLightapp;->d()Lcom/baidu/android/pushservice/PushLightapp;

    move-result-object v0

    if-eqz v0, :cond_3b

    invoke-static {}, Lcom/baidu/android/pushservice/PushLightapp;->c()Lcom/baidu/android/pushservice/IPushLightappListener;

    move-result-object v0

    invoke-static {}, Lcom/baidu/android/pushservice/PushLightapp;->d()Lcom/baidu/android/pushservice/PushLightapp;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/baidu/android/pushservice/IPushLightappListener;->initialComplete(Lcom/baidu/android/pushservice/PushLightapp;)V

    :cond_34
    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/baidu/android/pushservice/PushLightapp;->a(Lcom/baidu/android/pushservice/PushLightapp;I)I

    :cond_3a
    :goto_3a
    return-void

    :cond_3b
    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->d(Lcom/baidu/android/pushservice/PushLightapp;)Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_34

    new-instance v0, Lcom/baidu/android/pushservice/PushLightapp;

    iget-object v1, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {v1}, Lcom/baidu/android/pushservice/PushLightapp;->d(Lcom/baidu/android/pushservice/PushLightapp;)Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/baidu/android/pushservice/PushLightapp;-><init>(Landroid/content/Context;)V

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->e(Lcom/baidu/android/pushservice/PushLightapp;)Lcom/baidu/android/pushservice/PushLightapp;

    goto :goto_3a
.end method

.method public onServiceDisconnected(Landroid/content/ComponentName;)V
    .registers 4

    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->f(Lcom/baidu/android/pushservice/PushLightapp;)I

    move-result v0

    const/4 v1, 0x3

    if-gt v0, v1, :cond_f

    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    invoke-static {v0}, Lcom/baidu/android/pushservice/PushLightapp;->g(Lcom/baidu/android/pushservice/PushLightapp;)V

    :goto_e
    return-void

    :cond_f
    iget-object v0, p0, Lcom/baidu/android/pushservice/PushLightapp$2;->a:Lcom/baidu/android/pushservice/PushLightapp;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/baidu/android/pushservice/PushLightapp;->a(Lcom/baidu/android/pushservice/PushLightapp;I)I

    goto :goto_e
.end method
